
#ifndef _APDU_LIB_DIGEST_MGR_H_
#define _APDU_LIB_DIGEST_MGR_H_

#include "../apdu.def/apdu_datatypes.h"


#ifdef __cplusplus
extern "C" {
#endif

	int app_digest_init(HANDLE devHandle, int hash_algo, unsigned char * sm2_pub_key_blob, int pub_key_blob_len, 
						unsigned char * user_id, int id_len, int display);

	int app_digest(HANDLE devHandle, unsigned char * input, int input_len, unsigned char * hash_val, int * hash_len);

	int app_digest_update(HANDLE devHandle, unsigned char * input, int input_len, int display);

	int app_digest_file(HANDLE devHandle, int app_id, char * file_name, int offset, int read_len);

	int app_digest_final(HANDLE devHandle, unsigned char * input, int input_len, unsigned char * hash_val, int * hash_len);




#ifdef __cplusplus
}
#endif

#endif
